package com.esiag.isidis.fi.pdsTeam.send.beans;

import java.io.Serializable;
import java.util.Calendar;
import java.util.Date;
import org.apache.activemq.ActiveMQConnection;

import com.esiag.isidis.fi.pdsTeam.annotation.Queue;
import com.esiag.isidis.fi.pdsTeam.annotation.Url;
@Queue(value="QUEUE-PDSTeam")
@Url(value=ActiveMQConnection.DEFAULT_BROKER_URL)
public class Information implements Serializable {
	



	private static final long serialVersionUID = -8081043390361258654L;
	
	protected int id;
	protected String descri;
	
	protected Date date;
	protected IDTrain train;
	protected IDStation station;
	protected IDLigne ligne;
	
	
	
	public Information() {
		super();
		date=Calendar.getInstance().getTime();
	}



	



	

	public IDTrain getTrain() {
		return train;
	}

	public void setTrain(IDTrain train) {
		this.train = train;
	}









	public IDStation getStation() {
		return station;
	}









	public void setStation(IDStation station) {
		this.station = station;
	}









	public IDLigne getLigne() {
		return ligne;
	}









	public void setLigne(IDLigne ligne) {
		this.ligne = ligne;
	}









	public Date getDate() {
		return date;
	}



	public void setDate(Date date) {
		this.date = date;
	}
	
	

	public int getId() {
		return id;
	}









	public void setId(int id) {
		this.id = id;
	}









	public String getDescri() {
		return descri;
	}









	public void setDescri(String descri) {
		this.descri = descri;
	}









	@Override
	public String toString() {
		return "Information [id=" + id + ", descri=" + descri + ", date="
				+ date + ", train=" + train + ", station=" + station
				+ ", ligne=" + ligne + "]";
	}









	

	
	
}
